package com.oss.dto.oss.trademanage;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalTime;

@Data
public class TradeManageUpdateDto {
    @NotBlank(message = "ID不能为空")
    private String id;
    private LocalDate tradeDate;
    private LocalTime tradeTime;
    private String instrumentCode;
    private String varietyCode;
    private String studentID;
    // 开平标志(数据字典)
    private String offsetFlag;
    private String remark;
    private String optionType;
    private BigDecimal tradeSinglePrice;
    private BigDecimal tradeVolume;
    private BigDecimal commission;
    private BigDecimal premiumAveragePrice;
    private String tradeCode;
    private BigDecimal premium;
    private Integer taxFlag;
    private Integer serialNumber;
    // 交易保证金(只有卖开才有)
    private BigDecimal tradeMargin;
    // 交易归属 0:白天 1:夜盘(此时交易日自动往后延一天)
    private Integer belongFlag;
}